//
//  BaseViewController+Router.m
//  SXHomeTownClub
//
//  Created by 周思扬 on 2018/5/29.
//  Copyright © 2018年 jsx. All rights reserved.
//

#import "BaseViewController+Router.h"

@implementation BaseViewController (Router)

#pragma mark - Router

-(void)pushToPostDetail:(NSString *)tid anduid:(NSString *)uid andfrom_type:(NSString *)from_type
{
    if(uid.length==0||tid.length==0)
    {
        SDLog(@"参数为空");
        return;
    }
    
    if(from_type.length==0)
    {
        from_type=@"1";
    }
    PostDetailViewController * vc=[[PostDetailViewController alloc]init];
    vc.tid=tid;
    vc.uid=uid;
    vc.from_type=from_type;
    [self.navigationController pushViewController:vc animated:YES];
}

@end
